class DriverIncome {
  String userId;
  String start;
  String end;
  String accountType;
  String sum;
  String fare;
  String reward;
  String other;

  DriverIncome({this.userId,this.accountType, this.start, this.end, this.sum,this.fare,this.reward,this.other});

  DriverIncome.fromJson(Map<String, dynamic> json) {
    userId = json['user_id'];
    start = json['start'];
    accountType=json['account_type'];
    end = json['end'];
    sum = json['sum'];
    fare=json['fare'];
    reward=json['reward'];
    other=json['other'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['user_id'] = this.userId;
    data['start'] = this.start;
    data['end'] = this.end;
    data['account_type'] = this.accountType;
    data['sum'] = this.sum;
    data['fare'] = this.fare;
    data['reward'] = this.reward;
    data['other'] = this.other;
    return data;
  }
}